from pydantic import BaseModel


class ResponseGlobal(BaseModel):
    code: int = 10000
    message: str = 'Operation is successful'


class ResponseGlobalList(ResponseGlobal):
    data: list = []


class ResponseGlobalDict(ResponseGlobal):
    data: dict = {}


class PageResponse(ResponseGlobalList):
    page: int = 1  # 当前页码
    size: int = 0  # 每页大小
    count: int = 0  # 数据总条数
    page_count: int = 1  # 总页数
